<head>
	<jsp:directive.include file="/WEB-INF/jsp/prelude/include-head-meta.jspf" />
	<title>My Home Page</title>
	<style>
		.bd-placeholder-img {
			font-size: 1.125rem;
			text-anchor: middle;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
		}

		@media (min-width: 768px) {
			.bd-placeholder-img-lg {
				font-size: 3.5rem;
			}
		}
	</style>
</head>
<body>
<div class="container">
	<form class="form-signin" action="/user/register" method="POST">
		<h1 class="h3 mb-3 font-weight-normal">注册</h1>
		<label for="inputEmail" class="sr-only">请输出电子邮件</label> <input
			type="email" id="inputEmail" class="form-control"
			placeholder="请输入电子邮件" value="" name="email" required autofocus> <label
			for="inputPassword" class="sr-only">Password</label> <input
			type="password" id="inputPassword" class="form-control"
			placeholder="请输入密码" value="" name="password" required>
		<div class="checkbox mb-3">
			<label> <input type="checkbox" value="remember-me">
				Remember me
			</label>
		</div>
		<button class="btn btn-lg btn-primary btn-block" type="submit">Sign
			up</button>
		<p class="mt-5 mb-3 text-muted">&copy; 2017-2021</p>
	</form>
</div>
</body>

<%--
<script>
	function name1(){
		var name=document.getElementById("name").value;
		if(name.length==""){
			document.getElementById("tel").innerHTML="用户名不能为空"
			document.getElementById("tel").style.color="red";
		}else{
			document.getElementById("tel").innerHTML="√"
			document.getElementById("tel").style.color="green";
		}
	}
	// function name2(){
	// document.getElementById("tel").innerHTML="请填写用户名"
	// document.getElementById("tel").style.color="#999";
	// }
	function pwd2(){
		document.getElementById("pw").innerHTML="请填写6-12位的密码"
		document.getElementById("pw").style.color="#999";

	}
	function pwd1(){
		p=document.getElementById("paswd").value;

		if(p.length>=6&&p.length<=20)
		{
			document.getElementById("pw").innerHTML="√"
			document.getElementById("pw").style.color="green";
		}else{
			document.getElementById("pw").innerHTML="格式错误,请输入6-20位"
			document.getElementById("pw").style.color="red";
		}
	}
	function validate(){
		var qpw=document.getElementById("paswd").value;
		var qpw2=document.getElementById("paswd2").value;

		if(qpw==qpw2 && p.length>=6&&p.length<=20){
			document.getElementById("qpwtx").innerHTML="<font color=‘green‘>√</font>";
			document.getElementById("button").disabled = false;
		}
		else {
			document.getElementById("qpwtx").innerHTML="<font color=‘red‘>两次密码不相同或者格式错误</font>";
			document.getElementById("button").disabled = true;
		}
	}

</script>--%>
